package cn.xd.base.basic.type;

import cn.xd.common.exception.BizException;
import cn.xd.core.ddd.value.IdValue;

/**
 * <p>
 *
 * </p>
 *
 * @author chenyh
 * @since 2023-09-08
 */
public class GlobalAppUserId extends IdValue {

    public GlobalAppUserId() {
        super();
    }

    public GlobalAppUserId(Long value) {
        super(value);
    }

    /**
     * 对值进行业务校验
     */
    public static GlobalAppUserId of(Long value) {
        GlobalAppUserId obj = new GlobalAppUserId(value);
        obj.validate(value);
        return obj;
    }

    /**
     * 校验函数
     */
    @Override
    public void validate(Long value) throws BizException {

    }
}



